import csv,sys

matrixreader = csv.reader(open(sys.argv[1],'r'),delimiter='\t')

ncols = len(matrixreader.next())
nrows = 1

for row in matrixreader:
    nrows += 1

print str(nrows)+'-by-'+str(ncols)+'\n',
